.moviePage {
  min-height: 100vh;
  background-color: #f5f5f5;
}


/* 页面内容区域 */
.content {
  padding: 10px 24px 24px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 页面标题区域 */
.header {
  margin-bottom: 32px;
  padding: 28px 32px;
  // background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;

  // 添加装饰性元素
  &::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    animation: pulse 4s infinite ease-in-out;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: scale(0);
    animation: pulse 3s infinite ease-in-out 1s;
  }

  .ant-typography {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    transition: all 0.3s ease;
  }

  // 主标题样式
  .ant-typography[class*='ant-typography-title'] {
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  // 副标题样式
  .ant-typography-secondary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 4px 0;
    position: relative;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 60px;
      height: 2px;
      background: linear-gradient(to right, #ffffff, transparent);
      transition: width 0.3s ease;
    }
  }

  // 悬停效果
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230, 231, 235, 0.446);

    .ant-typography-secondary::after {
      width: 100%;
    }
  }
}

// 脉冲动画
@keyframes pulse {
  0%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 0;
  }
}

/* 加载状态容器 */
.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

/* 空状态容器 */
.emptyContainer {
  padding: 60px 20px;
}

/* 电影卡片样式 */
.movieCard {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(229, 231, 235, 0.8);

  &:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
  }

  // 卡片装饰元素
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  &:hover::before {
    opacity: 1;
  }
}

/* 电影封面样式 */
.movieCover {
  height: 360px;
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;

  // 封面悬停缩放效果
  .movieCard:hover & {
    transform: scale(1.03);
  }
}

/* 电影标题区域 */
.movieTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  .ant-typography:not(:last-child) {
    margin-bottom: 0;
  }
}

/* 超出宽度打点的标题样式 */
.truncateTitle {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.3s ease;

  // 响应式调整最大宽度
  @media (max-width: 575px) {
    max-width: 100%;
  }

  @media (min-width: 576px) and (max-width: 767px) {
    max-width: 200px;
  }

  @media (min-width: 768px) and (max-width: 991px) {
    max-width: 180px;
  }

  @media (min-width: 992px) {
    max-width: 220px;
  }
}

/* 电影年份 */
.movieYear {
  font-size: 12px;
  margin-left: 8px;
}

/* 电影评分 */
.movieRating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  .starIcon {
    color: #ff9800;
    margin-right: 4px;
  }
  .ant-typography {
    margin-bottom: 0;
    color: #ff9800;
  }
}

/* 电影描述 */
.movieDesc {
  margin-bottom: 12px;
  color: #666;
  line-height: 1.5;
}

/* 电影下载量 */
.movieDownloads {
  display: flex;
  align-items: center;
  .downloadIcon {
    margin-right: 4px;
    color: #999;
  }
  .ant-typography {
    margin-bottom: 0;
  }
}

/* 可滚动的悬浮提示样式 - 优化滚动条 */
.introductionTooltip {
  :global {
    .ant-tooltip-inner {
      max-height: 50vh;
      overflow-y: auto;
      overflow-x: hidden;

      /* 自定义更细的滚动条样式 */
      &::-webkit-scrollbar {
        width: 4px; /* 更细的滚动条宽度 */
      }

      &::-webkit-scrollbar-track {
        background: transparent; /* 隐藏滚动条轨道 */
      }

      &::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2); /* 滚动条滑块背景 */
        border-radius: 2px; /* 圆角处理 */

        &:hover {
          background: rgba(0, 0, 0, 0.3); /* 悬停时的背景 */
        }
      }

      /* 隐藏滚动条上下箭头 - 使用更严格的规则确保生效 */
      &::-webkit-scrollbar-button {
        display: none !important; /* 隐藏滚动条按钮（上下箭头） */
        width: 0;
        height: 0;
      }
      &::-webkit-scrollbar-button:vertical:start:decrement,
      &::-webkit-scrollbar-button:vertical:end:increment {
        display: none;
      }

      &::-webkit-scrollbar-corner {
        display: none; /* 隐藏滚动条角落 */
      }

      /* Firefox 滚动条样式 */
      scrollbar-width: thin; /* 细滚动条 */
      scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* 滑块颜色和轨道颜色 */
    }

    /* 直接针对滚动条按钮添加额外规则 */
    .ant-tooltip-inner::-webkit-scrollbar-button {
      display: none !important;
      width: 0;
      height: 0;
    }
  }
}

/* 确保覆盖 Ant Design 的默认提示框样式 */
.ant-tooltip-content {
  .ant-tooltip-arrow {
    display: none; /* 可选：隐藏箭头 */
  }
}

/* 响应式布局调整 */
@media (max-width: 768px) {
  .content {
    padding: 16px;
    padding-top: 76px; /* 60px 导航栏高度 + 16px 顶部内边距 */
  }

  .movieCover {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .movieCover {
    height: 240px;
  }
}

/* 回到顶部按钮样式 */
.backTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 100;
}

.backTopContent {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
  }
}

/* 响应式调整回到顶部按钮位置 */
@media (max-width: 768px) {
  .backTop {
    right: 20px;
    bottom: 20px;
  }

  .backTopContent {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
